<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-6">
        <h2>商品管理</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html">主页</a>
            </li>
            <li class="active">
                <strong>商品管理</strong>
            </li>
        </ol>
    </div>
    <div class="col-md-6">
        <h2>
            <a class="btn btn-success btn-lg pull-right" href="{:U('admin/product/add')}">发布宝贝</a>
        </h2>
    </div>
</div>


<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>宝贝列表</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="fa fa-wrench"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="#">Config option 1</a>
                    </li>
                    <li><a href="#">Config option 2</a>
                    </li>
                </ul>
                <a class="close-link">
                    <i class="fa fa-times"></i>
                </a>
            </div>
        </div>
        <div class="ibox">
            <div class="ibox-content">
                <table class="table table-hover table-bordered">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>下单用户</th>
                        <th>配送信息</th>
                        <th>下单时间</th>
                        <th>总价</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="orders" id="vo">
                        <tr>
                        <th>{$vo.id}</th>
                            <td>{$vo.user_name}</td>
                            <td>{$vo.address_name} / {$vo.address_address} / {$vo.address_phone}</td>
                            <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                            <td>￥{$vo.total}</td>
                            <td>{$vo.status|user_status}</td>
                            <td>
                                <a href="{:U('admin/order/view/id/'.$vo['id'])}">订单详情</a>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
                {$page}
            </div>
        </div>
    </div>
</div>